package com.camel.base.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.camel.core.entity.BasePaginationEntity;
import lombok.Data;

import java.io.Serializable;

/**
 * @TableName tb_datasource
 */
@TableName(value = "tb_datasource")
@Data
public class TbDatasource extends BasePaginationEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 数据库名称
     */
    @TableField(value = "db_name")
    private String dbName;

    /**
     * 数据库类型
     */
    @TableField(value = "db_type")
    private Integer dbType;

    /**
     * 用户名
     */
    @TableField(value = "login_username")
    private String loginUsername;

    /**
     * 数据库密码
     */
    @TableField(value = "login_password")
    private String loginPassword;

    /**
     * 端口
     */
    @TableField(value = "db_port")
    private String dbPort;

    /**
     * IP地址
     */
    @TableField(value = "db_addr")
    private String dbAddr;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
